package com.hfi.state.demo02;

/**
 * @author ChangLiang
 * @date 2020/4/14
 */
public class LargeState implements State {
    @Override
    public void changeFireClockWise(FireSwitch fireSwitch) {
        fireSwitch.setState(new OffState());
        System.out.println("closed fire");
    }

    @Override
    public void changeFireCounterClockWise(FireSwitch fireSwitch) {
        fireSwitch.setState(new MediumState());
        System.out.println("medium fire");
    }
}
